﻿using System;
/*
    Write an expression that calculates trapezoid's area by given sides a and b and height h
 */
class Trapezoids
    {
        static void Main()
        {
            Console.Write("Enter the number for side A: ");
            double sideA = double.Parse(Console.ReadLine());

            Console.Write("Enter the number for side B: ");
            double sideB = double.Parse(Console.ReadLine());

            Console.Write("Enter the number for height: ");
            double height = double.Parse(Console.ReadLine());

            double area = ((sideA + sideB) * height) / 2;
            Console.WriteLine("Trapezoid's area is: " + area);

        }
    }
